<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FuncionarioFormViewModel>" %>
<%@ Import Namespace="SubsidiosWebMvc.Models"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Crear
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Crear</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <%--<p>
                <label for="SenadorId">SenadorId:</label>
                <%= Html.TextBox("SenadorId") %>
                <%= Html.ValidationMessage("SenadorId", "*") %>
            </p>--%>
            <p>
                <label for="Razon Social">Razon social:</label>
                <%= Html.TextBox("RazonSocial") %>
                <%= Html.ValidationMessage("RazonSocial", "*") %>
            </p>
            <p>
                <label for="BloqueId">BloqueId:</label>
                <%= Html.DropDownList("BloqueId", Model.Bloques) %>
                <%= Html.ValidationMessage("BloqueId", "*") %>

            </p>
            <p>
                <label for="TipoFuncionarioId">TipoFuncionarioId:</label>
                <%= Html.DropDownList("TipoFuncionarioId", Model.TipoFuncionarios) %>
                <%= Html.ValidationMessage("TipoFuncionarioId", "*") %>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

